package com.chat.system.handler;

import com.chat.system.entity.domain.Res;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import javax.naming.AuthenticationException;

@RestControllerAdvice
public class CommonExceptionHandler {

   @ExceptionHandler(AuthenticationException.class)
    public Res test() {
       return Res.error();
   }
}
